package com.example.segment_saver;

import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;

public class SiteData implements Serializable {

	private static final long serialVersionUID = 1L;
	
	private String url;
	
	public SiteData(){
		this.url = "www.google.com";
	}
	
	public SiteData(String url)
	{
		this.url= url;
	}
	
	public String getUrl(){
		return this.url;
	}
	
	public void setUrl(String url)
	{
		this.url=url;
	}
	
	private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
	{
		this.url = (String) stream .readObject();
	}
	
	private void writeObject(ObjectOutputStream stream) throws IOException
	{
		stream.writeObject(this.url);
	}
}
